﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Media.Imaging;

namespace TestApp.Model
{
    public class CouponCategory
    {
        public string CategoryId
        {
            set;
            get;
        }

        public string Name
        {
            set;
            get;
        }

        public override bool Equals(object obj)
        {
            if (obj.GetType() == this.GetType())
            {
                CouponCategory otherCategory = (CouponCategory)obj;
                return otherCategory.CategoryId.CompareTo(this.CategoryId) == 0;
            }
            return false;
        }
    }

    
    public class Coupon
    {

        public string Id
        {
            get;
            set;
        }

        public string Name
        {
            get;
            set;
        }

        public string Value
        {
            set;
            get;
        }

        public string Summary
        {
            set;
            get;
        }

        public string Description
        {
            set;
            get;
        }
        
        public string Vendor
        {
            set;
            get;
        }

        public DateTime ExpirationDate
        {
            set;
            get;
        }

        public string ImageUrl
        {
            set;
            get;
        }

        public BitmapImage CouponImage
        {
            set;
            get;
        }

        public string Brand
        {
            set;
            get;
        }

        public string State
        {
            set;
            get;
        }

        public bool IsRemovable
        {
            set;
            get;
        }

        public CouponCategory Category
        {
            set;
            get;
        }

        public string Target
        {
            set;
            get;
        }

    }
}
